package cn.stylefeng.guns.modular.kehao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 可好出库订单
 * </p>
 *
 * @author zzh
 * @since 2025-09-30
 */
@TableName("kh_ly_out_order")
public class KhLyOutOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 出库/冲销单号
     */
    @TableField("out_order_no")
    private String outOrderNo;

    /**
     * 订单单号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 客户单号
     */
    @TableField("cust_no")
    private String custNo;

    /**
     * 商品编码
     */
    @TableField("goods_no")
    private String goodsNo;

    /**
     * 商品条码
     */
    @TableField("goods_bar_code")
    private String goodsBarCode;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 业务类型
     */
    @TableField("biz_type")
    private String bizType;

    /**
     * 物流模式
     */
    @TableField("tms_mode")
    private String tmsMode;

    /**
     * 地区
     */
    @TableField("dq")
    private String dq;

    /**
     * 业态
     */
    @TableField("yt")
    private String yt;


    /**
     * 大区
     */
    @TableField("bq")
    private String bq;

    /**
     * 区本
     */
    @TableField("qb")
    private String qb;

    /**
     * 单据类型
     */
    @TableField("bill_type")
    private String billType;

    /**
     * 冲销原单
     */
    @TableField("offset_order_no")
    private String offsetOrderNo;

    /**
     * 配送机构
     */
    @TableField("psjg")
    private String psjg;

    /**
     * 配送库存地
     */
    @TableField("pskcd")
    private String pskcd;

    /**
     * 一级类目
     */
    @TableField("category1")
    private String category1;

    /**
     * 二级类目
     */
    @TableField("category2")
    private String category2;

    /**
     * 三级类目
     */
    @TableField("category3")
    private String category3;

    /**
     * 收货机构
     */
    @TableField("shjg")
    private String shjg;


    /**
     * 收货机构地址
     */
    @TableField("shjgdz")
    private String shjgdz;


    /**
     * 出库数量
     */
    @TableField("out_num")
    private BigDecimal outNum;

    /**
     * 冲销数量
     */
    @TableField("offset_out_num")
    private BigDecimal offsetOutNum;

    /**
     * 出库/冲销数量
     */
    @TableField("out_offset_num")
    private BigDecimal outOffsetNum;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 核算主体
     */
    @TableField("acct_ent")
    private String acctEnt;

    /**
     * 成本单价
     */
    @TableField("unit_cost")
    private BigDecimal unitCost;

    /**
     * 成本金额
     */
    @TableField("cost_amt")
    private BigDecimal costAmt;

    /**
     * 未税成本单价
     */
    @TableField("untax_unit_cost")
    private BigDecimal untaxUnitCost;

    /**
     * 未税成本金额
     */
    @TableField("untax_cost_amt")
    private BigDecimal untaxCostAmt;

    /**
     * 作业人
     */
    @TableField("operator")
    private String operator;

    /**
     * 作业时间
     */
    @TableField("op_time")
    private String opTime;

    /**
     * 作业系统
     */
    @TableField("op_sys")
    private String opSys;

    /**
     * 是否销售
     */
    @TableField("sell_flag")
    private String sellFlag;

    /**
     * 是否跨公司
     */
    @TableField("cross_company_flag")
    private String crossCompanyFlag;

    /**
     * 备注
     */
    @TableField("notes")
    private String notes;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private String createUser;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 状态
     */
    @TableField("stat")
    private String stat;

    /**
     * 提交人
     */
    @TableField("sub_user")
    private String subUser;

    /**
     * 提交时间
     */
    @TableField("sub_time")
    private Date subTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOutOrderNo() {
        return outOrderNo;
    }

    public void setOutOrderNo(String outOrderNo) {
        this.outOrderNo = outOrderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCustNo() {
        return custNo;
    }

    public void setCustNo(String custNo) {
        this.custNo = custNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsBarCode() {
        return goodsBarCode;
    }

    public void setGoodsBarCode(String goodsBarCode) {
        this.goodsBarCode = goodsBarCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getTmsMode() {
        return tmsMode;
    }

    public void setTmsMode(String tmsMode) {
        this.tmsMode = tmsMode;
    }

    public String getDq() {
        return dq;
    }

    public void setDq(String dq) {
        this.dq = dq;
    }

    public String getYt() {
        return yt;
    }

    public void setYt(String yt) {
        this.yt = yt;
    }

    public String getQb() {
        return qb;
    }

    public void setQb(String qb) {
        this.qb = qb;
    }

    public String getBillType() {
        return billType;
    }

    public void setBillType(String billType) {
        this.billType = billType;
    }

    public String getOffsetOrderNo() {
        return offsetOrderNo;
    }

    public void setOffsetOrderNo(String offsetOrderNo) {
        this.offsetOrderNo = offsetOrderNo;
    }

    public String getPsjg() {
        return psjg;
    }

    public void setPsjg(String psjg) {
        this.psjg = psjg;
    }

    public String getPskcd() {
        return pskcd;
    }

    public void setPskcd(String pskcd) {
        this.pskcd = pskcd;
    }

    public String getCategory1() {
        return category1;
    }

    public void setCategory1(String category1) {
        this.category1 = category1;
    }

    public String getCategory2() {
        return category2;
    }

    public void setCategory2(String category2) {
        this.category2 = category2;
    }

    public String getCategory3() {
        return category3;
    }

    public void setCategory3(String category3) {
        this.category3 = category3;
    }

    public String getShjg() {
        return shjg;
    }

    public void setShjg(String shjg) {
        this.shjg = shjg;
    }

    public BigDecimal getOutNum() {
        return outNum;
    }

    public void setOutNum(BigDecimal outNum) {
        this.outNum = outNum;
    }

    public BigDecimal getOffsetOutNum() {
        return offsetOutNum;
    }

    public void setOffsetOutNum(BigDecimal offsetOutNum) {
        this.offsetOutNum = offsetOutNum;
    }

    public BigDecimal getOutOffsetNum() {
        return outOffsetNum;
    }

    public void setOutOffsetNum(BigDecimal outOffsetNum) {
        this.outOffsetNum = outOffsetNum;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getAcctEnt() {
        return acctEnt;
    }

    public void setAcctEnt(String acctEnt) {
        this.acctEnt = acctEnt;
    }

    public BigDecimal getUnitCost() {
        return unitCost;
    }

    public void setUnitCost(BigDecimal unitCost) {
        this.unitCost = unitCost;
    }

    public BigDecimal getCostAmt() {
        return costAmt;
    }

    public void setCostAmt(BigDecimal costAmt) {
        this.costAmt = costAmt;
    }

    public BigDecimal getUntaxUnitCost() {
        return untaxUnitCost;
    }

    public void setUntaxUnitCost(BigDecimal untaxUnitCost) {
        this.untaxUnitCost = untaxUnitCost;
    }

    public BigDecimal getUntaxCostAmt() {
        return untaxCostAmt;
    }

    public void setUntaxCostAmt(BigDecimal untaxCostAmt) {
        this.untaxCostAmt = untaxCostAmt;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getOpTime() {
        return opTime;
    }

    public void setOpTime(String opTime) {
        this.opTime = opTime;
    }

    public String getOpSys() {
        return opSys;
    }

    public void setOpSys(String opSys) {
        this.opSys = opSys;
    }

    public String getSellFlag() {
        return sellFlag;
    }

    public void setSellFlag(String sellFlag) {
        this.sellFlag = sellFlag;
    }

    public String getCrossCompanyFlag() {
        return crossCompanyFlag;
    }

    public void setCrossCompanyFlag(String crossCompanyFlag) {
        this.crossCompanyFlag = crossCompanyFlag;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getStat() {
        return stat;
    }

    public void setStat(String stat) {
        this.stat = stat;
    }

    public String getSubUser() {
        return subUser;
    }

    public void setSubUser(String subUser) {
        this.subUser = subUser;
    }

    public Date getSubTime() {
        return subTime;
    }

    public void setSubTime(Date subTime) {
        this.subTime = subTime;
    }

    public String getBq() {
        return bq;
    }

    public void setBq(String bq) {
        this.bq = bq;
    }

    public String getShjgdz() {
        return shjgdz;
    }

    public void setShjgdz(String shjgdz) {
        this.shjgdz = shjgdz;
    }

    @Override
    public String toString() {
        return "KhLyOutOrder{" +
        "id=" + id +
        ", outOrderNo=" + outOrderNo +
        ", orderNo=" + orderNo +
        ", custNo=" + custNo +
        ", goodsNo=" + goodsNo +
        ", goodsBarCode=" + goodsBarCode +
        ", goodsName=" + goodsName +
        ", bizType=" + bizType +
        ", tmsMode=" + tmsMode +
        ", dq=" + dq +
        ", yt=" + yt +
        ", qb=" + qb +
        ", billType=" + billType +
        ", offsetOrderNo=" + offsetOrderNo +
        ", psjg=" + psjg +
        ", pskcd=" + pskcd +
        ", category1=" + category1 +
        ", category2=" + category2 +
        ", category3=" + category3 +
        ", shjg=" + shjg +
        ", outNum=" + outNum +
        ", offsetOutNum=" + offsetOutNum +
        ", outOffsetNum=" + outOffsetNum +
        ", unit=" + unit +
        ", acctEnt=" + acctEnt +
        ", unitCost=" + unitCost +
        ", costAmt=" + costAmt +
        ", untaxUnitCost=" + untaxUnitCost +
        ", untaxCostAmt=" + untaxCostAmt +
        ", operator=" + operator +
        ", opTime=" + opTime +
        ", opSys=" + opSys +
        ", sellFlag=" + sellFlag +
        ", crossCompanyFlag=" + crossCompanyFlag +
        ", notes=" + notes +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", deptId=" + deptId +
        ", stat=" + stat +
        ", subUser=" + subUser +
        ", subTime=" + subTime +
        "}";
    }
}
